'use strict'
const Router = require('koa-router')();
const bodyparse = require('koa-bodyparser');
//调用jj.js里面的reg和que
let {reg,que} = require('../utils/jj');

function router(haha){
    //声明一个变量来用于reg传过来的文件内容
    let xixi = reg();
    //打印xixi里面的内容
    console.log(xixi);
    Router.get('/',async (ctx,next)=>{
        ctx.body='哈哈'
    })
    
    Router.get('/test',async (ctx,next)=>{
        ctx.body='我是test'
    })
    haha.use(bodyparse())
    haha.use(Router.routes())
}

module.exports = router;